﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using EZCRS.HCMS.Data;

namespace EZCRS.HCMS.SqlClient
{
    public class sql_Hcrs_resvlog
    {
        public bool SaveConfnum(string confnum, string verifyCode)
        {
            if (ExecSql.SqlExecNoquery("update hcrs_resvlog set confnum='"+confnum+"' where verifycode='"+verifyCode+"'") > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

        public bool SaveGetStatus(int status, string verifyCode)
        {
            if (ExecSql.SqlExecNoquery("update hcrs_resvlog_sub set getstatus="+status.ToString()+" where verifycode='"+verifyCode+"'" ) > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
